<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body th:fragment="user">
<div class="setting_search tabs">
	<div class="btn-group-box">
		<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#addUser"><i class="add"></i>添加</button>
		<button type="button" class="btn btn-default border-blue" id="btnUserRm">删除</button>
		<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#batchAddUsers">批量添加</button>
	</div>
	<div class="group-box">
		<table class="table table-bordered table-striped table-condensed table-hover" style="table-layout: fixed;">
			<thead>
				<tr>
					<th width="5%" style="text-align: center;"><input type="checkbox" id="checkUserListAll"/></th>
					<th width="10%">登录账号</th>
					<th width="10%">姓名</th>
					<th width="20%">部门编号</th>
					<th width="20%">部门名称</th>
					<th width="10%">手机号</th>
					<th width="20%">邮箱</th>
					<th width="5%">状态</th>
				</tr>
			</thead>
			<tbody id="userListTable">
					<tr th:each="entity : ${userMap?.get('rows')}">
						<td style="text-align: center;"><input class="id" type="checkbox" th:value="${entity.id}"/></td>
						<td th:text="${entity.loginId}" th:title="${entity.loginId}"></td>
						<td th:text="${entity.userName}" th:title="${entity.userName}"></td>
						<td th:text="${entity.deptNumber}" th:title="${entity.deptNumber}"></td>
						<td th:text="${entity.deptName}" th:title="${entity.deptName}"></td>
						<td th:text="${entity.mobile}" th:title="${entity.mobile}"></td>
						<td th:text="${entity.email}" th:title="${entity.email}"></td>
						<td th:text="${entity.enabled == 0 ?'禁用':'启用'}" th:title="${entity.enabled == 0 ?'禁用':'启用'}"></td>
					</tr>
			</tbody>
		</table>
	</div>
</div>
<div class="page-msg">共<span th:text="${userMap.total}"></span>记录</div>
<input type="hidden" th:value="${userMap.total}" id="userTotal">
<ul class="pagination" id="userPagination"></ul>
</body>
</html>